public class Bus extends Automobile{
    int num;
    public Bus(){
    }
    public Bus(String brand,String plateNumber,int num){
        super(brand,plateNumber);
        this.num=num;
    }
    public double getRent(double d){
        double sum1=0;
        if(num<=16){
            sum1=d*400;
        }
         if(num>16){
            sum1=d*600;
        }
        return sum1;
    }
}